import styles from './index.less';
import Banner from '@/components/Banner';
import Tag from '@/components/Tag';
import Reading from '@/components/Reading';
import CategoryList from '@/components/CategoryList';
import { IRouteComponentProps } from 'umi';

let Index: React.FC<IRouteComponentProps<{ id: string }>> = ({ children, location, route, history, match }) => {

  return (
    <div>
      <section>
        <Banner />
        <CategoryList children={children} location={location} route={route} routes={[]} history={history} match={match} />
      </section>
      <aside>
        <Reading />
        <Tag />
      </aside>
    </div>
  );
}

export default Index
